import request from '@/utils/request'

// 查询面试题分类列表
export function listType(query) {
  return request({
    // url: '/system/Type/list',
    url: '/questions/type/list',
    method: 'get',
    params: query
  })
}

// 获取面试题分类详细
export function getType(id) {
  return request({
    // url: '/system/Type/' + id,
    url: '/questions/type/' + id,
    method: 'get'
  })
}

// 新增面试题分类
export function addType(data) {
  return request({
    // url: '/questions/type',
    url: '/questions/type',
    method: 'post',
    data: data
  })
}

// 修改面试题分类
export function updateType(data) {
  return request({
    // url: '/system/Type',
    url: '/questions/type',
    method: 'put',
    data: data
  })
}

// 删除面试题分类
export function delType(ids) {
  return request({
    // url: '/system/Type/' + id,
    url: '/questions/type/' + ids,
    method: 'delete'
  })
}

// 导出面试题分类
export function exportType(query) {
  return request({
    // url: '/system/Type/export',
    url: '/questions/type/export',
    method: 'get',
    params: query
  })
}